Skip to contentSkip to conversation

Global screen tearing (scrolling, Hz miss-match?)

Bug 101229 [email protected] 1 participant 21 messages May 30, 2017 – Sep 25, 2019

lore
Share & tools
lore
#0 lore raw

https://bugs.freedesktop.org/show_bug.cgi?id=101229

            Bug ID: 101229
           Summary: Global screen tearing (scrolling, Hz miss-match?)
           Product: Mesa
           Version: 17.0
          Hardware: x86-64 (AMD64)
                OS: Linux (All)
            Status: NEW
          Severity: normal
          Priority: medium
         Component: Drivers/Gallium/radeonsi
          Assignee: [email protected]
          Reporter: [email protected]
        QA Contact: [email protected]

Created attachment 131571
--> https://bugs.freedesktop.org/attachment.cgi?id=131571&action=edit
glxinfo

System exhibits uncontrolled screen-tearing that can be seen when moving windows, watching videos or playing games, or any graphical movement in general. The tearing gradually shifts up or down the screen, suggesting its a cycle frequency miss-match (or floating-point error).

Has affected mesa 12 and kernel 4.8 onwards.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#1 lore raw

https://bugs.freedesktop.org/show_bug.cgi?id=101229

--- Comment #1 from Michel Dänzer <[email protected]> --- Please attach the Xorg log file and the output of xrandr and dmesg corresponding to the problem.

Can you create a video demonstrating the problem when moving windows? If not, please describe which desktop environment / window manager / compositing manager you're using.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#2 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=101229

--- Comment #2 from Paul <[email protected]> --- Created attachment 131583
--> https://bugs.freedesktop.org/attachment.cgi?id=131583&action=edit
xorg

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#3 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=101229

--- Comment #3 from Paul <[email protected]> --- Created attachment 131584
--> https://bugs.freedesktop.org/attachment.cgi?id=131584&action=edit
display modes

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#4 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=101229

--- Comment #4 from Paul <[email protected]> --- Created attachment 131585
--> https://bugs.freedesktop.org/attachment.cgi?id=131585&action=edit
dmesg | radeon

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#5 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=101229

--- Comment #5 from Paul <[email protected]> --- (In reply to Michel Dänzer from comment #1)

Quoted 3 lines

Can you create a video demonstrating the problem when moving windows? If not, please describe which desktop environment / window manager / compositing manager you're using.

Don't think I can show a video as I don't have a high-end camera or capture card, but it affects vanilla Kubuntu 16.10 and 17.04 at least.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#6 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=101229

--- Comment #6 from Michel Dänzer <[email protected]> ---
Which rendering backend and tearing prevention method are selected in the kwin settings?

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#7 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=101229

--- Comment #7 from Paul <[email protected]> --- (In reply to Michel Dänzer from comment #6)

Quoted 2 lines

Which rendering backend and tearing prevention method are selected in the kwin settings?

XRender and auto, I have tried the full-repaint but it didn't seem to have an effect.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#8 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=101229

--- Comment #8 from Michel Dänzer <[email protected]> ---
To prevent tearing, you need to either choose OpenGL instead of XRender and an appropriate tearing prevention setting, or enable TearFree with

xrandr --output eDP --set TearFree on

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#9 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=101229

--- Comment #9 from Paul <[email protected]> --- (In reply to Michel Dänzer from comment #8)

Quoted 4 lines

To prevent tearing, you need to either choose OpenGL instead of XRender and an appropriate tearing prevention setting, or enable TearFree with

xrandr --output eDP --set TearFree on

it's less obvious, but there still appears to be screen tearing when running via openGL 3.1 using full-screen-repaints.

It's also reasonably obvious that for some GUIs their buttons will update their two triangles across two frames instead of one, this seems to be a much rarer occurrence with the above settings however.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#10 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=101229

--- Comment #10 from Michel Dänzer <[email protected]> --- (In reply to Paul from comment #9)

Quoted 1 line

it's less obvious, but there still appears to be screen tearing

How does that manifest, and when you do what?

Quoted 1 line

when running via openGL 3.1 using full-screen-repaints.

FWIW, since DRI3 is enabled, "Re-use screen content" is the most efficient setting.

Quoted 3 lines

It's also reasonably obvious that for some GUIs their buttons will update their two triangles across two frames instead of one, this seems to be a much rarer occurrence with the above settings however.

Yeah, this is unavoidable with apps which use X11 drawing primitives targeting their windows directly.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#11 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=101229

--- Comment #11 from Paul <[email protected]> --- (In reply to Michel Dänzer from comment #10)

Quoted 4 lines

(In reply to Paul from comment #9)

Quoted 1 line

it's less obvious, but there still appears to be screen tearing

How does that manifest, and when you do what?

Use the system and run OpenGL applications, is there an option to enable triple-buffering or is it enabled by default?

Quoted 2 lines

FWIW, since DRI3 is enabled, "Re-use screen content" is the most efficient setting.

I did have this enabled for a while, but plasma got super erratic after I had launched a game, I'll give it another shot and see if it does it again.

I'm also going to try with 'allow applications to disable composition' unchecked in case something was disabling the compositor...

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#12 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=101229

--- Comment #12 from Michel Dänzer <[email protected]> --- (In reply to Paul from comment #11)

Quoted 1 line

Use the system and run OpenGL applications,

Fullscreen or windowed? Does enabling any sync-to-vblank functionality in the apps or setting the environment variable vblank_mode=3 for running them help?

Quoted 1 line

is there an option to enable triple-buffering or is it enabled by default?

Automatically used with DRI3.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#13 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=101229

--- Comment #13 from [email protected] ---
I've also had this problem, I'm using the AMDGPU-experimental option that i've enabled in the kernels because I'm on a R9 390x. I'm in Mesa 17.1 on Kernel 4.12.11 in KDE Manjaro Linux. I am using a display port and this happens both at 144hz and 60hz. I've tried recording it using OBS, however, it did not show up in the video. I've also tried using compton and enabling full-screen reprints. Compton did not help at all, and enabling full-screen reprint v-sync helped a small amount but did not stop it from happening. Switching between Kwin and OpenGL 3.1 did not change anything.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#14 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=101229

[email protected] changed:

What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |major

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#15 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=101229

--- Comment #14 from Michel Dänzer <[email protected]> --- (In reply to Justin Mitzel from comment #13)

Quoted 1 line

I've also had this problem,

How do you know it's the same problem? I still don't have a good idea what the problem reported here looks like (and my last questions from comment 12 are unanswered).

Quoted 1 line

I've tried recording it using OBS, however, it did not show up in the video.

Can you take an external video (e.g. using a cell phone) demonstrating the problem?

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#16 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=101229

--- Comment #15 from Michel Dänzer <[email protected]> --- (In reply to Paul from comment #0)

Quoted 1 line

Has affected mesa 12 and kernel 4.8 onwards.

BTW, Paul, does this mean that the problem doesn't occur if you use Mesa < 12 or kernel < 4.8? If so, can you bisect Mesa or the kernel?

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#17 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=101229

--- Comment #16 from Justin Mitzel <[email protected]> --- (In reply to Michel Dänzer from comment #14)

Quoted 3 lines

How do you know it's the same problem? I still don't have a good idea what the problem reported here looks like (and my last questions from comment 12 are unanswered).

I suppose that is a good point. I don't really know but I figured it sounds very similar. I also figured that posting here would be better than making a new bug report.

Quoted 4 lines
Quoted 1 line

I've tried recording it using OBS, however, it did not show up in the video.

Can you take an external video (e.g. using a cell phone) demonstrating the problem?

Here is a cellphone capture of the screen-tearing I'm talking about in Stardew Valley. It is mostly happens indoors, and happens outdoors occasionally.

https://vid.me/n0t1r

It also happens on the desktop sometimes, although (most likely) too rarely for me to capture.

It also happens this noticeably in Torchlight II, if you would want me to record that as well.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#18 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=101229

--- Comment #17 from Paul <[email protected]> ---

Quoted 1 line

https://vid.me/n0t1r

Ok, that 'tearing' is in fact much different to what I've been seeing, in your case it looks a lot more like *corruption* as entire chunks of buffer are being rendered in random offset positions. I dont really know exactly what might cause this, but I do know that running applications in fullscreen at a different resolution to native can result in various buffer corruption...

(In reply to Michel Dänzer from comment #12)

Quoted 6 lines

(In reply to Paul from comment #11)

Quoted 1 line

Use the system and run OpenGL applications,

Fullscreen or windowed? Does enabling any sync-to-vblank functionality in the apps or setting the environment variable vblank_mode=3 for running them help?

Windowed, I rarely run things in fullscreen, of which it's usually borderless windowed anyway. I don't remember if setting the vblank mode actually worked though...

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#19 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=101229

--- Comment #18 from Michel Dänzer <[email protected]> --- (In reply to Justin Mitzel from comment #16)

Quoted 1 line

I also figured that posting here would be better than making a new bug report.

I'm afraid that was the wrong call, please file your own report.

In general, it's easy to mark duplicate bug reports, but it's hard to untangle information about different problems in a single report, so it's better to start with a separate report unless one is at least 99% sure it's exactly the same problem. Also, lots of different causes can produce similar symptoms.

Quoted 2 lines

Here is a cellphone capture of the screen-tearing I'm talking about in Stardew Valley.

BTW, that's not what "tearing" refers to in the display context.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#20 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=101229

GitLab Migration User <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

         Resolution|---                         |MOVED
             Status|NEW                         |RESOLVED

--- Comment #19 from GitLab Migration User <[email protected]> --- -- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/mesa/mesa/issues/1267.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel